<?php
require_once '../global.inc.php';
//创建数据库对象
Database::connect($HOST, $NAME, $PWD, $DB);
$username = $_GET["username"];
$count = Database::count("user","user_name = '$username'");
//ajax返回数据
echo $count[0];
Database::close();
?>